<template>
    <div>
        <button v-for="(item, index) in infos" @click="handleClick(item, index)" :key="item.value">item.value</button>
    </div>
</template>

<script setup>
import { ref } from 'vue';
let infos = ref([{ value: 1 }, { value: 2 }, { value: 3 }])
function handleClick(item, index) {
    console.log(item, index);
    infos.value.splice(index, 1)
}

</script>

<style lang="scss" scoped></style>